package cn.idietrade.idietradeesmodule9000.service.feignservice;

import cn.idietrade.common.pojo.SecondGoods;
import cn.idietrade.idietradeesmodule9000.service.feignservice.impl.GoodsFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zjy
 * @version 1.0
 * @createTime 2022-12-03 17:27
 * @description
 */
@FeignClient(value = "goods-module",fallback = GoodsFeignFallback.class)
public interface GoodsFeignService {
    @RequestMapping("/queryGoodsAll")
    List<SecondGoods> queryGoodsAll(@RequestParam(value = "keyword",required = false)String keyword,
                                    @RequestParam(value = "cityId",required = false)Integer cityId);

}
